﻿@model VMFactory.Api.Data.Models.VMRequest

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Request a VM</legend>


        <div class="editor-label">
            @Html.LabelFor(model => model.TemplateId, "VMTemplate")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TemplateId", String.Empty)
            @Html.ValidationMessageFor(model => model.TemplateId)
        </div>


<br />
<p>Would you like a specific template? Request it @Html.ActionLink("here", "Create", "VMTemplateRequest") </p>


        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
@*    @Html.ActionLink("Back to List", "Index")*@
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
